package com.mashang.stuManSystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mashang.stuManSystem.entity.Student;
import com.mashang.stuManSystem.entity.vo.StudentVo;
import com.mashang.stuManSystem.mapper.StudentMapper;
import com.mashang.stuManSystem.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService{

    @Autowired
    private StudentMapper mapper;


    @Override
    public StudentVo queryById(Integer studentId) {
        return mapper.queryById(studentId);
    }

    public Page<StudentVo> queryList(Page<StudentVo> studentVoPage, QueryWrapper<StudentVo> qw){
        return mapper.queryList(studentVoPage, qw);
    }
}
